﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Globalization;
using MMS.DAO;
namespace MMS
{
    public static class ObjectUtil
    {
        public static string geIdUnitFromName(string  str)
        {
            UnitDAO unitDAO = new UnitDAO(Param.ConnectionString.Value);
            UnitDTO  unitDTO = unitDAO.selectFromName(str);
            return unitDTO.Id;
        }

    }
}
